package OverLoad;

public class OverLoadTest {
    public static void main(String[] args) {
        OverLoadTest mOLTest = new OverLoadTest();
        mOLTest.mOL(1);
        mOLTest.mOL(1, 4);
        mOLTest.mOL("This is a test statement");

        OverLoadTest maxTest = new OverLoadTest();
        System.out.println(maxTest.max(3, 6));
        System.out.println(maxTest.max(2.6, -4.74));
        System.out.println(maxTest.max(2.8, 1.6, -9));


    }

    public void mOL(int i){
        System.out.println(i * i);
    }
    public void mOL(int i, int j){
        System.out.println(i * j);
    }
    public void mOL(String str){
        System.out.println(str);
    }

    public int max(int i, int j){

        return Math.max(i, j);
    }
    public double max(double i, double j){

        return Math.max(i, j);
    }
    public double max(double i, double j, double k){
        double maxTemp = Math.max(i, j);
        return Math.max(maxTemp, k);
    }

}
